const express = require('express')
const router = express.Router()
const expressJOI = require('@escook/express-joi')
const {
  reg_login_schema
} = require('../schema/user')
const {
  regUser,
  login
} = require('../router_handler/user.js')
// 注册
router.post('/reguser', expressJOI(reg_login_schema), regUser)
// 登录
router.post('/login', expressJOI(reg_login_schema), login)
module.exports = router